home *** CD-ROM | disk | FTP | other *** search
/ Merciful 1 / Merciful - Disc 1.iso / software / s / sas_utilities / sasutilities01.dms / sasutilities01.adf / Commands / Common.doc < prev    next >
Text File  |  1992-12-21  |  1KB  |  47 lines

  1. Common(V37)                                           Common(V37)
  2.  
  3.  
  4. FORMAT
  5.        COMMON [FILE1] file1 [[FILE2] file2] [-1] [-2] [-3]
  6.  
  7. TEMPLATE
  8.        FILE1/A,FILE2,-1/S,-2/S,-3/S
  9.  
  10. PURPOSE
  11.        To select or reject lines common to two sorted files.
  12.  
  13. SPECIFICATION
  14.        The  command COMMON reads file1 and file_2, which should be
  15.        ordered in the collating sequence of SORT, and produces  a
  16.        three-column  output:  lines  only in file1; lines only in
  17.        file2; and lines in both files.
  18.  
  19.        Switches -1, -2, or -3 suppress  printing  of  the  corre-
  20.        sponding  column.  Thus COMMON -1 -2 prints only the lines
  21.        common to the two files; COMMON  -2  -3  prints  only  the
  22.        lines  in  the first file but not in the second; COMMON -1
  23.        1 -2 -3 is a no-op.
  24.  
  25.        If file2 is not given, the default input will be used.
  26.  
  27. SEE ALSO
  28.        COMPARE(V37), PREPARE(V37), SORT(AmigaDOS), UNIQUE(V37)
  29.  
  30. UNIX EQUIVALENT
  31.        comm(1)
  32.  
  33. AUTHOR
  34.        Torsten Poulin (torsten@diku.dk)
  35.  
  36. UNRESTRICTIONS
  37.        COMMON is free; anyone may redistribute copies  of  COMMMON
  38.        to anyone under the terms stated in the GNU General Public
  39.        Licence, a copy of which accompanies each copy of  COMMON.
  40.  
  41.        Torsten  Poulin  encourages you to improve and extend COM-
  42.        MON, and urges that you contribute your extensions to  the
  43.        world.
  44.  
  45.  
  46. Common version 37.5      11 February 1993
  47.